CREATE TABLE [dbo].[TDCOCO_DESC]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[TI_COMP_COBR] [dbo].[TD_VC_003] NOT NULL,
[NU_COMP_COBR] [dbo].[TD_VC_008] NOT NULL,
[CO_DESC] [dbo].[TD_VC_008] NOT NULL,
[DE_DATA] [dbo].[TD_VC_100] NULL,
[NU_DATA] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDCOCO_DE__NU_DA__7B7B4DDC] DEFAULT ((0)),
[FE_DATA] [dbo].[TD_DT_001] NULL,
[NU_DECI] [dbo].[TD_IN_001] NULL CONSTRAINT [DF__TDCOCO_DE__NU_DE__7C6F7215] DEFAULT ((0)),
[DE_OBSE] [dbo].[TD_VC_200] NULL,
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TDCOCO_DE__CO_US__7D63964E] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TDCOCO_DE__FE_US__7E57BA87] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TDCOCO_DE__CO_US__7F4BDEC0] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TDCOCO_DE__FE_US__004002F9] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TDCOCO_DESC] ADD CONSTRAINT [PK__TDCOCO_D__B2C1394618977ACE] PRIMARY KEY CLUSTERED  ([CO_EMPR], [TI_COMP_COBR], [NU_COMP_COBR], [CO_DESC]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TDCOCO_DESC] ADD CONSTRAINT [FK__TDCOCO_DESC__3612CF1C] FOREIGN KEY ([CO_EMPR], [TI_COMP_COBR]) REFERENCES [dbo].[TTTIPO_COCO] ([CO_EMPR], [TI_COMP_COBR])
GO
